#include "Color4f.h"

const Color4f Color4f::white = Color4f(1,1,1,1);
const Color4f Color4f::black = Color4f(0,0,0,1);
const Color4f Color4f::red = Color4f(1,0,0,1);
const Color4f Color4f::green = Color4f(0,1,0,1);
const Color4f Color4f::blue = Color4f(0,0,1,1);

Color4f::Color4f()
{
    r=g=b=0.0f;
    a=1.0f;
}

Color4f::Color4f(float r, float g, float b)
    : r(r), g(g), b(b), a(1.0f)
{ }

Color4f::Color4f(float r, float g, float b, float a)
    : r(r), g(g), b(b), a(a)
{ }

Color4f::Color4f(const Color4f& other)
{
    r=other.r;
    g=other.g;
    b=other.b;
    a=other.a;
}

Color4f::Color4f(const float* other)
{
    r=*other;
    g=*(other+1);
    b=*(other+2);
    a=*(other+3);
}

Color4f::~Color4f()
{
    //dtor
}
